#ifndef DETRENDRR_H
#define DETRENDRR_H
#include <opencv2/opencv.hpp>
#include <vector>
#include "QVector"
#include "qdebug.h"
class DetrendRR
{
public:
    DetrendRR();
    // void wavedec(const cv::Mat &signal, int levels, const std::string &waveletType, std::vector<cv::Mat> &coeffs);
    // QVector<double> qmf(const QVector<double> &x, int p = 0);
    QVector<double> qmf(const QVector<double> &x, int p = 0);

    void orthfilt(const QVector<double> &W, int P, QVector<double> &Lo_D, QVector<double> &Hi_D, QVector<double> &Lo_R, QVector<double> &Hi_R);
    QVector<double> flip(const QVector<double> &x);
};

#endif // DETRENDRR_H
